import { getAllServiceType } from "../../apis/servicetype";


export const getAllService = (data?:any) => {
    return async (dispatch: any) => {
        const res = await getAllServiceType(data)
        // console.log('res', res);
        if (res.status === 200) {
             dispatch({type:'GET_CATE',payloay:res.data.rows.children})
        }

        // dispatch({type:'GET_CATE',payloay:data.data})
    }
}